Return

Edit Task: SetPossibility ResourceDurationOverride

Description

The SetPossibility ResourceDurationOverride attribute under EditTask defines the duration override for a single task possibility.

Parameters

ParameterDescription
PossibilityNameA string of text with a comma delimited list of resources in the possibility. Order is not required and the resource names should not be in quotes.
ResourceNameA string of text of the resource that is being defined within the command.
TypeThe parameter options are either 'None', 'FixedDur', or 'EfficiencyFactor'.
  • None: There is no override of a task's defined fixed duration for this task's assignments.
  • FixedDur: If this task uses this resource, then the duration of this task will be overridden to the provided DurationOverrideValue.
  • EfficiencyFactor: If this task uses this resource, then the duration of this task will be overridden by the provided Efficiency Factor. The Efficiency Factor is the denominator in the formula; OverrideDuration = task defined fixed duration/ Efficiency Factor.
ValueA non negative double representing the value for the override field. Either the duration in seconds when using Type = FixedDur or the denominator when using Type = EfficiencyFactor

Examples

Override the duration of 'TaskA' to be 99 seconds when 'ResA' and possibility 'ResA,ResB' are used.

PATCH api/task/TaskA

Body:

{

"SetResourceDetails" : {

"PossibilityName" : "ResA,ResB",

"ResourceName" : "ResA",

"DurationOverride" : {

"Type" : "FixedDur",

"Value" : "99" }

}

}